<?php
/**
 *  客户
*/

namespace app\api\model;

class Customer extends BaseModel
{


    /**
     *  头像
    */
    public function avatar()
    {
       return  $this->hasOne(Images::class,'id','avatar_id');
    }


    /**
     *  关联所在国家
    */
    public function country()
    {
        return  $this->hasOne(RegionCountry::class,'id','country_id');
    }

}
